/**
 * 
 */
package com.coder520.sync_learning.demo;

import java.security.acl.Group;

/**
 * @author zhaoyibo
 *
 */
public class ThreadGroupDestroy {
	public static void main(String[] args) {
		//判断当前的线程组是否被销毁
		ThreadGroup threadGroup=new ThreadGroup("TestGroup");
		
		ThreadGroup mainGroup=Thread.currentThread().getThreadGroup();
		
		System.out.println("当前的线程组是否已经销毁"+threadGroup.isDestroyed());
		mainGroup.list();
		
		threadGroup.destroy();//销毁当前的线程组
		System.out.println("-----------------我是一条分割线----------------");
		System.out.println("当前的线程组是否已经销毁"+threadGroup.isDestroyed());
		mainGroup.list();
	}
}
